package com.mxpio.erp.quality.service.impl;

import com.mxpio.erp.common.quality.entity.InspectionItemParam;
import com.mxpio.erp.common.quality.service.InspectionItemParamService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class InspectionItemParamServiceImpl extends BaseServiceImpl<InspectionItemParam> implements InspectionItemParamService {
    @Override
    @Transactional
    public List<InspectionItemParam> listByCode(String code) {
        return JpaUtil.linq(InspectionItemParam.class)
                .equal("code",code)
                .list();
    }
}
